import { reroute } from './navigations/reroute.js'
import { isInBrowser } from './utils/runtime-environment'

let started = false

export function start() {
  started = true
  if (isInBrowser) {
    reroute() // 除了去加载应用还需要挂载应用
  }
}

// 使用一个函数的话，外部只可以获取，而不能修改 started 这个值
export function isStarted () {
  return started
}
